import request from '@/utils/request'

// 保存
export function savePermission(data) {
    return request({
        url: '/permission/addPermission',
        method: 'post',
        data
    })
}
// 获取员工
export function lists(query) {
    return request({
        url: '/permission/lists',
        method: 'get',
        params: query
    })
}
// giabian
export function changeStaffStatus(data) {
    return request({
        url: '/permission/changeStaffStatus',
        method: 'post',
        data
    })
}

export function deleteStaff(data) {
    return request({
        url: '/permission/delete',
        method: 'post',
        data
    })
}

export function changePassword(data) {
    return request({
        url: '/permission/resetPassword',
        method: 'post',
        data
    })
}
// 获取员工
export function getPermissionDetail(query) {
    return request({
        url: '/permission/detail/' + query,
        method: 'post'
    })
}